<?php

// $Id$


require_once('../../../boot.inc.php');

boot('my_site_adm');

require_once(TANGRA_MAIN_DIR.'web_site/session_vars_manager.class.php');
require_once(TANGRA_MAIN_DIR.'web_site/threads_manager.class.php');


session_start();


$context = new Web_Context();

$svm_var_name = Session_Vars_Manager::get_svm_var_name();

if ($context->exists_in_session($svm_var_name, $context)) {
	$svm = $context->get_from_session($svm_var_name);

	if ($svm->is_global_var_registered(THREADS_MANAGER_NAME)) {
		$tm = $svm->get_global_var(THREADS_MANAGER_NAME);
		$tm->snapshot_update_access_time($context);
	}
}

print('Updated at: '.date('Y-m-d H:i:s e').' server time');
